<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			table{
				width: 400px;
				border: 1px solid;
				border-collapse: collapse;
			}
			td,th{
				border: 1px solid;
				background-color: #EEEEEE;
			}
			th{
				background-color: aqua;
			}
			.class1{
				background-color: red;
			}
			tr:nth-child(odd){
				background-color: antiquewhite;
			}
			
		</style>
	</head>
	<body>
		<table width="100" border="1" align="center">
			<tr>
				<th colspan="2">学生成绩</th>
			</tr>
			<tr>
				<td>语文</td><td class="class1">98</td>
			</tr>
			<tr>
				<td>数学</td><td class="class1">95</td>
			</tr>
		</table>
		<table width="300" border="1" align="center">
			<tr><td rowspan="2">张三</td><td>语文</td><td>98</td></tr>
			<tr><td>数学</td><td>95</td></tr>
			<tr><td rowspan="4">李四</td><td>语文</td><td>89</td>
			<tr><td>数学</td><td>77</td></tr>
		</table>
	</body>
</html>
